import {getEnterpriseId} from "@/utils/getEnterpriseId"

class StorageTool {
  static getInstance(){
    if (!this.instance) {
      this.instance = new StorageTool();
    }
    return this.instance
  }
  getItem(ele){
    const id = getEnterpriseId();
    return localStorage.getItem(ele + id)
  }
  setItem(ele,value){
    const id = getEnterpriseId();
    localStorage.setItem(ele + id, value)
  }
}

export default StorageTool.getInstance();